"""
封装练习
"""
class Phone:
    __is__5g_enabled = False # 是否支持5G网络


    def __check_5g(self):
        if self.__is__5g_enabled:
            print("5g开启")
        else:
            print("5g关闭，使用4g网络")
    def call_by_5g(self):
        self.__check_5g()
        print("正常通话中")
phone = Phone()
phone.call_by_5g()